package com.springmybatisplus.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.springmybatisplus.entity.Book;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2023-11-29
 */
public interface BookService extends IService<Book> {
	List<Book> findAllBooks();
	Book findBookById(Integer id);
    boolean	addBook(Book book);
	boolean updateBook(Book book);
	boolean deleteById(Integer id);

	List<Book> searchBooks(Book book);

	IPage<Book> getPage(Integer start, Integer size);
}
